package com.cqie.service;

import com.cqie.dto.entrepot.EntrepotRecordInfoListDto;
import com.cqie.dto.entrepot.AddEntrepotRecordDto;
import com.cqie.entity.EntrepotRecordInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cqie.exception.SpecialException;

import java.util.List;

/**
 * <p>
 * 仓库进取记录表 服务类
 * </p>
 *
 * @author 不吃海鲜
 * @since 2024-12-19
 */
public interface IEntrepotRecordInfoService extends IService<EntrepotRecordInfo> {

    List<EntrepotRecordInfoListDto> getEntrepotRecordInfoByWarehouseId(String warehouseId);

    /**
     * 新增进货记录
     *
     * @param addEntrepotRecordDto
     * @return
     */
    Boolean saveStockRecord(AddEntrepotRecordDto addEntrepotRecordDto) throws SpecialException;

    /**
     * 根据仓库id查询进货取货记录
     *
     * @param warehouseId
     * @return
     */
    List<EntrepotRecordInfo> getEntrepotRecordInfoByMedicineId(
            String warehouseId, String drugCode, Integer pageSize, Integer pageIndex) throws SpecialException;

}
